package com.yyp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyp.bean.DeviceInfo;
import com.yyp.dao.DeviceInfoDao;
import com.yyp.service.DeviceInfoService;

@Service
public class DeviceInfoServiceImpl implements DeviceInfoService{
	@Resource
	DeviceInfoDao deviceInfoImpl;

	//
	// public void del(String names) {

	// DeviceInfoImpl.delete(names);
	// }

	
	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeviceInfoService#del(int)
	 */
	public void del(int id) {

		deviceInfoImpl.delete(id);
	}

	
	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeviceInfoService#find(java.lang.Integer)
	 */
//	public DeviceInfo find(Integer id) {
//		return deviceInfoImpl.find(id);
//	}

	
	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeviceInfoService#find(java.lang.String)
	 */
	public DeviceInfo find(String name) {
		return deviceInfoImpl.find(name);

	}

	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeviceInfoService#findAll()
	 */
	public List<DeviceInfo> findAll() {
		return deviceInfoImpl.findAll();
	}

	
	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeviceInfoService#save(com.yyp.bean.DeviceInfo)
	 */
	public void save(DeviceInfo entity) {
		deviceInfoImpl.save(entity);
	}

	
	/* (non-Javadoc)
	 * @see com.yyp.service.impl.DeviceInfoService#updata(com.yyp.bean.DeviceInfo)
	 */
	public void updata(DeviceInfo entity) {
		deviceInfoImpl.updata(entity);
	}

}
